package model.commands.misc;

import model.Environment;
import model.commands.Command;

/**
 * Name:
 * val
 * 
 * Description:
 * returns the value of val 
 * 
 * @author JLongley
 * 
 */
public class LiteralCommand extends Command {
    private int myValue;

    /**
     * 
     * @param value the value of the literal 
     */
    public LiteralCommand(int value) {
        myValue = value;        
    }

    @Override
    public int evaluate(Environment e) {
        return myValue;
    }
}
